//
//  XueXiCell2.swift
//  StudyChinese
//
//  Created by Wenzhe Fan on 2019/6/30.
//  Copyright © 2019年 Wenzhe Fan. All rights reserved.
//

import UIKit

class XueXiCell2: UITableViewCell {

    @IBOutlet weak var numLb: UILabel!
    @IBOutlet weak var titleLB: UILabel!
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    var readBack:((_ isChineseRead:Bool)->Void)?
    @IBAction func ChineseRead(_ sender: UIButton) {
        switch sender.tag {
        case 101:
            if self.readBack != nil {
                self.readBack!(true)
            }
            break
        case 202:
            if self.readBack != nil {
                self.readBack!(false)
            }
            break
        default:
            break
        }
    }
    
    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
